#region Using

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;

using Gizmox.WebGUI.Common;
using Gizmox.WebGUI.Forms;
using WaveMaster.Holidays.Club.Service;
using System.Configuration;
using System.Collections;
using ThoughtWorks.QRCode.Codec;
using System.IO;
using WaveMaster.Holidays.Club.Domain;

#endregion

namespace WaveMaster.Holidays.Club.Web
{
    public partial class PrintKIMSCardForm : Form
    {
        CheckInService m_BookingService;

        public PrintKIMSCardForm(long id, User m_currentUser)
        {
            InitializeComponent();
            this.Text = "Print KIMS Card";

            m_BookingService = new CheckInService();// (CheckInService)ServiceFactory.Instance().GetService(ServiceFactory.BOOKING_SERVICE);
            DataSet result = m_BookingService.ReportKIMSCardPassengerByID(id);
            result.WriteXml(ConfigurationManager.AppSettings["ReportDataTemp"] + "ReportKimsCard" + m_currentUser.UserID + ".xml", XmlWriteMode.WriteSchema);
            htmlBox1.Url = ConfigurationManager.AppSettings["URLReport"] + "ReportViewer.aspx?ReportDataSource=ReportKimsCard" + m_currentUser.UserID + ".xml&ReportFile=KIMS.rpt";
            htmlBox1.Update();
       }
    }
}